package com.sbs.demo.service.impl;


import com.sbs.demo.common.AbstractService;
import com.sbs.demo.mapper.VideoMapper;
import com.sbs.demo.model.Video;
import com.sbs.demo.service.VideoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Impl
 *
 * @author songqi
 */
@Service
@Slf4j
public class VideoServiceImpl extends AbstractService<Video> implements VideoService {

    /**
     * videoMapper
     */
    @Resource
    private VideoMapper videoMapper;


    /**
     * 根据id查找
     *
     * @param id
     * @return
     */
    @Override
    public Video getById(Long id) {
        return videoMapper.selectByPrimaryKey(id);
    }

}
